package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.BasePeopleInfoMapper;
import com.ruoyi.system.domain.BasePeopleInfo;
import com.ruoyi.system.service.IBasePeopleInfoService;
import com.ruoyi.common.core.text.Convert;

/**
 * ryglService业务层处理
 * 
 * @author ruoyi
 * @date 2022-03-18
 */
@Service
public class BasePeopleInfoServiceImpl implements IBasePeopleInfoService 
{
    @Autowired
    private BasePeopleInfoMapper basePeopleInfoMapper;

    /**
     * 查询rygl
     * 
     * @param idNo rygl主键
     * @return rygl
     */
    @Override
    public BasePeopleInfo selectBasePeopleInfoByIdNo(String idNo)
    {
        return basePeopleInfoMapper.selectBasePeopleInfoByIdNo(idNo);
    }

    /**
     * 查询rygl列表
     * 
     * @param basePeopleInfo rygl
     * @return rygl
     */
    @Override
    public List<BasePeopleInfo> selectBasePeopleInfoList(BasePeopleInfo basePeopleInfo)
    {
        return basePeopleInfoMapper.selectBasePeopleInfoList(basePeopleInfo);
    }

    /**
     * 新增rygl
     * 
     * @param basePeopleInfo rygl
     * @return 结果
     */
    @Override
    public int insertBasePeopleInfo(BasePeopleInfo basePeopleInfo)
    {
        return basePeopleInfoMapper.insertBasePeopleInfo(basePeopleInfo);
    }

    /**
     * 修改rygl
     * 
     * @param basePeopleInfo rygl
     * @return 结果
     */
    @Override
    public int updateBasePeopleInfo(BasePeopleInfo basePeopleInfo)
    {
        return basePeopleInfoMapper.updateBasePeopleInfo(basePeopleInfo);
    }

    /**
     * 批量删除rygl
     * 
     * @param idNos 需要删除的rygl主键
     * @return 结果
     */
    @Override
    public int deleteBasePeopleInfoByIdNos(String idNos)
    {
        return basePeopleInfoMapper.deleteBasePeopleInfoByIdNos(Convert.toStrArray(idNos));
    }

    /**
     * 删除rygl信息
     * 
     * @param idNo rygl主键
     * @return 结果
     */
    @Override
    public int deleteBasePeopleInfoByIdNo(String idNo)
    {
        return basePeopleInfoMapper.deleteBasePeopleInfoByIdNo(idNo);
    }
}
